package Grantsfire::Schema::Vcard;

use strict;
use warnings;

use base 'DBIx::Class';

__PACKAGE__->load_components("Timestamper", "Core");
__PACKAGE__->table("vcard");
__PACKAGE__->add_columns(
  "id",
  { data_type => "INT", default_value => undef, is_nullable => 0, size => 11 },
  "created",
  {
    data_type => "DATETIME",
    default_value => undef,
    is_nullable => 1,
    size => 19,
  },
  "modified",
  {
    data_type => "DATETIME",
    default_value => undef,
    is_nullable => 1,
    size => 19,
  },
  "fn",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
  "n_first_name",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
  "n_last_name",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
  "org",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
  "adr_post_office_box",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
  "adr_extended_address",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
  "adr_street_address",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
  "adr_locality",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
  "adr_region",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
  "adr_postal_code",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
  "adr_country_name",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
  "tel",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
  "email",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
  "url",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->has_many(
  "entry_grantors",
  "Grantsfire::Schema::Entry",
  { "foreign.grantor" => "self.id" },
);
__PACKAGE__->has_many(
  "entry_grantees",
  "Grantsfire::Schema::Entry",
  { "foreign.grantee" => "self.id" },
);
__PACKAGE__->has_many(
  "entry_grant_vcards",
  "Grantsfire::Schema::Entry",
  { "foreign.grant_vcard" => "self.id" },
);
__PACKAGE__->has_many(
  "org_vcards",
  "Grantsfire::Schema::Org",
  { "foreign.vcard" => "self.id" },
);
__PACKAGE__->has_many(
  "org_directors",
  "Grantsfire::Schema::Org",
  { "foreign.director" => "self.id" },
);


# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-05-12 22:27:20
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JemQD29xNXPjKv0Y8la0pw
# These lines were loaded from '/Users/cwest/Documents/Clients/GrantsFire/src/trunk/lib/Grantsfire/Schema/Vcard.pm' found in @INC.# They are now part of the custom portion of this file# for you to hand-edit.  If you do not either delete# this section or remove that file from @INC, this section# will be repeated redundantly when you re-create this# file again via Loader!
package Grantsfire::Schema::Vcard;

use strict;
use warnings;
use base qw/DBIx::Class/;

use Grantsfire::Geocoder;

sub loc_string {
    my ($self) = @_;
    return Grantsfire::Geocoder->loc_string($self);
}

1;
# End of lines loaded from '/Users/cwest/Documents/Clients/GrantsFire/src/trunk/lib/Grantsfire/Schema/Vcard.pm' 


# You can replace this text with custom content, and it will be preserved on regeneration
1;
